package com.firebird.oms.service.sm;

import java.util.List;
import java.util.Map;

import com.firebird.base.domain.Page;
import com.firebird.oms.domain.sm.TismStaticType;
import com.firebird.oms.domain.sm.TismStaticValue;

public interface StaticService {

	/**
	 * 创建静态类型
	 * @param smStaticType
	 */
	public abstract void createStaticType(TismStaticType smStaticType);

	/**
	 * 获取静态类型
	 * @param smStaticType
	 */
	public abstract TismStaticType getStaticType(Integer staticTypeId);

	/**
	 * 更新静态类型
	 * @param smStaticType
	 */
	public abstract void updateStaticType(TismStaticType smStaticType);

	/**
	 * 查询静态类型列表
	 * @param filter
	 * @return
	 */
	public abstract List<TismStaticType> findStaticType(
			Map<String, String> filter);

	/**
	 * 分页查询静态类型
	 * @param filter
	 * @param like
	 * @param sort
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public abstract Page pageStaticType(Map<String, String> filter,
			Map<String, String> like, Map<String, String> sort, int pageNo,
			int pageSize);

	/**
	 * 创建静态值
	 * @param smStaticValue
	 */
	public abstract void createStaticValue(TismStaticValue smStaticValue);

	/**
	 * 获取静态值
	 * @param id
	 * @return
	 */
	public abstract TismStaticValue getStaticValue(Integer id);

	/**
	 * 更新静态值
	 * @param smStaticValue
	 */
	public abstract void updateStaticValue(TismStaticValue smStaticValue);

	/**
	 * 查询静态值列表
	 * @param filter
	 * @return
	 */
	public abstract List<TismStaticValue> findStaticValue(
			Map<String, String> filter);

	/**
	 * 分页查询静态值
	 * @param filter
	 * @param like
	 * @param sort
	 * @param pageNo
	 * @param pageSize
	 * @return
	 */
	public abstract Page pageStaticValue(Map<String, String> filter,
			Map<String, String> like, Map<String, String> sort, int pageNo,
			int pageSize);

}